package server.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import org.springframework.stereotype.Service;
import server.business.pojo.Allbusiness;

@Service("AllbusinessService")
public interface AllbusinessService  extends IService<Allbusiness> {

    /**
     * 根据id查找业务
     * @param id
     * @return
     */
    public Allbusiness getcurrentbusiness(Integer id);

    /**
     * 分页查找可建业务的数据
     * @param page
     * @param doctorid
     * @return
     */
    public IPage<Allbusiness> getWhoCanCreate(Page<Allbusiness> page, String doctorid);

}
